<template>
  <div class="table-item" v-for="(item, index) in tableData" :key="index">
    <div class="item-cloumn1 cloumn1">{{ item.bizTypeName }}</div>
    <div class="item-cloumn2">
      <div
        class="item-box tableItemR"
        v-for="(itemC, idxC) in item.roleStatsList"
        :key="idxC"
      >
        <div class="cloumn-box cloumn2">{{ itemC.roleName }}</div>
        <div class="cloumn-box cloumn3">{{ itemC.workload }}</div>
        <div class="cloumn-box cloumn4">{{ itemC.onlineOfficerCount }}</div>
      </div>
    </div>
  </div>
</template>

<script setup>
// const props = defineProps({
//   tableData: {
//     type: Array<itemData>,
//     default: [],
//   },
// });
const props = defineProps({
  tableData: {
    type: Array,
    default: [],
  },
});
</script>

<style scoped lang="scss">
.table-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e5e5e5;
  .item-cloumn1 {
    padding: 0 12px;
    box-sizing: border-box;
    font-size: 14px;
  }
  .item-cloumn2 {
    .item-box {
      display: flex;
      height: 34px;

      border-bottom: 1px solid #e5e5e5;

      .cloumn-box {
        display: flex;
        align-items: center;
        padding: 0 8px;
        box-sizing: border-box;
        font-size: 13px;
        border-left: 1px solid #e5e5e5;
      }
    }
    .item-box:last-of-type {
      border-bottom: 0;
    }
  }
}

.table-tb::-webkit-scrollbar {
  display: none;
}
.cloumn1 {
  width: 100px;
}
.cloumn2 {
  width: 100px;
}
.cloumn3 {
  width: 77px;
  // flex: 1;
}
.cloumn4 {
  // flex: 1;
  width: 76px;
}
</style>
